package com.sjf.controller;

import com.sjf.mapper.TUserMapper;
import com.sjf.pojo.TUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author <huangtang>
 * @since 2022/9/15 10:37
 **/
@RestController
public class mpesController {

    @Autowired
    TUserMapper userMapper;

    @GetMapping("/mp")
    public String mp () {
        List<TUser> tUsers = userMapper.selectList ();
        System.out.println (tUsers.toString ());
        return tUsers.toString ();
    }

    @GetMapping("/mp1")
    public String mp1 () {
        TUser tUser = userMapper.selectById ("1");
        return tUser.toString ();
    }
}
